<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>第三方登录 - {$config_sitename}</title>
    <meta content="" name="keywords">
    <meta content="" name="description">
    <link rel="stylesheet" href="__CSS__/global.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__COMMJS__/wind.js"></script>
    <script src="__JS__/jquery-1.7.2.min.js"></script>
</head>

<body>
<div class="b-page">

    <Admintemplate file="Home/Public/header"/>

    <div class="b-login">
        <div class="b-body l-center">

            <div class="b-login__body">
                <form onsubmit="return false">
                    <input type="hidden" id="type" value="{$userinfo.type}"/>
                    <input type="hidden" id="uavatar" value="{$userinfo.head}"/>
                    <input type="hidden" id="openkey" value="{$userinfo.openkey}"/>
                <div class="b-login__left">
                    <div class="b-login__nav">请完善您的资料</div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">昵称：</div>
                        <div class="b-login__col2"><input type="text" name="nickname" id="nickname" value="{$userinfo.nick}" /></div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">账号：</div>
                        <div class="b-login__col2"><input type="text" name="uname" id="uname" placeholder="请使用邮箱注册" /></div>
                    </div>

                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">密码：</div>
                        <div class="b-login__col2"><input type="password" name="password" id="password" placeholder="请输入密码" /></div>
                    </div>
                    <div class="ofh l-mgb20">
                        <div class="b-login__col1">确认密码：</div>
                        <div class="b-login__col2"><input type="password" name="password2" id="password2" placeholder="请输入确认密码" /></div>
                    </div>
                    <div class="errmsg"></div>
                    <div class="clear"></div>
                    <div class="ofh l-mgb20" style="margin-top: 20px">
                        <div class="b-login__col4">
                            <button class="login" id="thirdReg">完成登录</button>
                        </div>
                    </div>
                </div>
                    </form>
                <div class="b-login__right">
                    <a href="" class="b-login__advert"><img src="__IMAGES__/login_advert.jpg"></a>
                </div>
            </div>
        </div>
    </div>

    <Admintemplate file="Home/Public/footer"/>

</div>

<script src="__JS__/index.js"></script>
<script src="__JS__/user.js"></script>
<script>
    user.thirdReg();
    $(document).ready(function(){
        $('.b-dongtaiItem').each(function(i,val){
            if(i%3==0) $(this).addClass('b-dongtaiItem_first');
        });
        $('.b-input__placeholder').on('click',function(){
            $(this).hide().prev().focus();
        });
        $('.b-login__col2>input').on('blur',function(){
            if($(this).val()=='') $(this).next().show();
        });
    });
</script>
</body>
</html>